<!DOCTYPE html>
<html class="chrome csstransforms3d csstransitions">
  <head>
    <title>{$seo.title|default="选礼物，上哇礼！只为Ta的惊喜~"} - 哇礼网</title>
    <meta name="keywords" content="{$seo.keywords|default="礼物，创意礼物，精选礼物"}">
    <meta name="description" content="{$seo.description|default="哇礼网精选好礼推荐平台，10000+礼物达人为你精选的创意礼物，解决你为不同对象不同节日场合不同挑选礼物的烦恼。选礼物，上哇礼，百分百惊喜！"}">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link href="__PUBLIC__/css/bootstrap.min.css" rel="stylesheet" media="screen">
    <link href="__PUBLIC__/css/font-awesome.min.css" rel="stylesheet" media="screen">
    <link href="__PUBLIC__/css/public.css" rel="stylesheet" media="screen">
    <!--[if lt IE 9]>
        <script src="__PUBLIC__/js/assets/libs/html5shiv.js?2.4.6.4"></script>
    <![endif]-->
    <!--[if IE 8]>
        <script src="__PUBLIC__/js/assets/libs/respond.min.js?2.4.6.4"></script>
    <![endif]-->
    <script src="__PUBLIC__/js/jquery/jquery-1.11.1.min.js"></script>
    <script src="__PUBLIC__/js/bootstrap.js"></script>
    <?php
      $user_id = $is_login  = is_login();
      $user_info = session('user_auth');
    ?>
    <script type="text/javascript">
      var isLogin = <?php echo $is_login ? 1 : 0; ?>
    </script>
  </head>
  <body class="index">
  	<header class="header">
      <nav class="navbar navbar-default navbar-fixed-top">
      <div class="container">
      	<div class="navbar-header">
          <a href="//wowli.net" class="navbar-brand">哇礼网-选礼物，上哇礼，只为Ta的惊喜！</a>
          <button class="navbar-toggle" data-target=".navbar-collapse" data-toggle="collapse" type="button">
            <span class="sr-only">切换导航</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
        </div>
        <nav class="collapse navbar-collapse pull-left">
          <ul class="nav navbar-nav">
            <li><a href="http://wowli.net/bbs/" target="_blank">花园</a></li>
            <li><a href="#">抽屉</a></li>
            <!-- <li><a href="#">杂志</a></li>
            <li><a href="#">小组</a></li>
            <li><a href="#">经验</a></li> -->
          </ul>
        </nav>
        <form action="" class="navbar-form navbar-left hidden-xs hidden-sm" role="search">
          <div class="form-group">
            <input type="text" class="form-control js-search" name="q" placeholder="搜好礼，搜惊喜" autocomplete="off"/>
            <button class="button fa fa-search" type="submit"></button>
          </div>
        </form>
        <!--用户登录后的信息和操作-->
        <div class="nav-misc <?php if(!$is_login) echo 'hidden';?>">
            <notempty name="user_info">
            <ul class="nav-misc-list" style="margin-bottom:0px;">
                <li class="nav-misc-item nav-profile">
                    <a class="profile-link" href="__ROOT__/wower/{$user_info.uid|think_encrypt}">
                        <img width="34" height="34" src="__PUBLIC__/Uploads/{$user_info.avatar|default="default_avatar.jpg"}" alt="{$user_info.user_name}">
                        我的哇礼
                    </a>
                </li>
                <li class="nav-misc-item enterances">
                    <i class="fa fa-plus J_UserAction"></i>
                    <div class="publish-enterances-wrap J_ActionWrap hidden">
                        <ul class="publish-enterances">
                            <li><a href="javascript:;" rel="nofollow"><i class="icon fa fa-paper-plane-o"></i>发布惊喜</a></li>
                            <li><a href="javascript:;" rel="nofollow"><i class="icon fa fa-pencil-square-o"></i>贡献攻略</a></li>
                        </ul>
                        <i class="icon-wrap"></i>
                        <i class="icon-inner"></i>
                    </div>
                </li>
            </ul>
            </notempty>
        </div>
        <!--用户操作完成-->
        <ul class="nav user-nav pull-right <?php if($is_login) echo 'hidden';?>">
          <ul class="nav nav-login">
            <li><a href="" class="login" data-toggle="modal" data-target="#login-modal">登录</a></li>
            <li><a href="#" class="reg" data-toggle="modal" data-target="#login-modal">注册</a></li>
          </ul>
        </ul>
      </div>
      </nav>
  	</header>